/*
 * Copyright (c) 2013, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package com.syncomponents.client;

import org.springframework.stereotype.Service;

import com.syncomponents.client.jms.AbstractJmsReceiver;

import commonj.sdo.DataObject;


/**
 * demo
 * 
 * @author sunkey
 * @date Mar 27, 2014
 */
@Service
public class SynJmsReceiver extends AbstractJmsReceiver<DataObject> {

    @Override
    public Object doRecieve(DataObject obj) {
        
        if (logger.isDebugEnabled()) {
            logger.debug("msgType:{}, action:{}", obj.getString("msgType"), obj.getString("action"));
            logger.debug("call business logic");
        }

        // 不需要回复时返回空，暂不需要
        return null;
    }

    @Override
    public Class<DataObject> getClazzType() {
        return DataObject.class;
    }

}
